package org.yellow.backend.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yellow.backend.mapper.testtypeMapper;
import org.yellow.backend.pojo.testtype;

/**
 * @author: hy
 * @create: 2024-01-01
 */
@Service
@SuppressWarnings({"all"})
public class testtypeService {
    @Autowired
    testtypeMapper mapper;
    public testtype selectTesttypeById(int id){
        return mapper.selectById(id);
    }

    /**
     * 根据testtype返回testid
     * @param testtype
     * @return
     */
    public int selectTestId(String testtype){
        return mapper.selectTestId(testtype);
    }
}
